
import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        name: JSON.parse(sessionStorage.getItem("name")),
        setmealid:JSON.parse(sessionStorage.getItem("setmealid")),
        information:JSON.parse(sessionStorage.getItem("information")),
        exam:JSON.parse(sessionStorage.getItem("exam")),
        tc:JSON.parse(sessionStorage.getItem("tc")),
        identity :JSON.parse(sessionStorage.getItem("identity")),
        sj :JSON.parse(sessionStorage.getItem("sj")),

    },
    mutations: {
        sjj(state, play) {
            state.sj = play;
        },
        sfz(state, play) {
            state.identity = play;
        },
        menus(state, play) {
            state.name = play;
        },
        tcidd(state, play) {
            state.setmealid = play;
        },
        info(state, play) {
            state.information = play;
        },
        memberexamination(state, play) {
            state.exam = play;
        },
        t(state, play) {
            state.tc = play;
        },
    }
})

